package com.trw.trp.bean;

public class RoleBean {
	public static final RoleBean ADMIN_ROLE = new RoleBean(1);
	public static final RoleBean SUPER_ADMIN_ROLE = new RoleBean(2L);

	private long roleId;
	private String roleName;

	public RoleBean(long roleId) {
		this.roleId = roleId;
	}

	public long getRoleId() {
		return roleId;
	}

	public void setRoleId(long roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Override
	public boolean equals(Object o) {
		if (o == null || !(o instanceof RoleBean)) {
			return false;
		}
		RoleBean u = (RoleBean) o;
		return roleId == u.roleId;
	}

	@Override
	public String toString() {
		return "RoleBean [roleId=" + roleId + ", roleName=" + roleName + "]";
	}

}
